package com.fh.fruit.service.bill.impl;

import com.fh.dao.DaoSupport;
import com.fh.entity.Page;
import com.fh.fruit.service.bill.ReconciliationManager;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author joe
 */
@Service("ReconciliationManager")
public class ReconciliationService implements ReconciliationManager {
	
    @Resource(name = "daoSupport")
    private DaoSupport dao;

	@SuppressWarnings("unchecked")
	public List<Map<String, Object>> listReconciliation(Page page) throws Exception {
		return (List<Map<String, Object>>) dao.findForList("ReconciliationMapper.getReconciliationlistPage", page);
	}

	public List<Map<String, Object>> reconciliationCount(Page page) throws Exception {
		// TODO Auto-generated method stub
		return  (List<Map<String, Object>>) dao.findForMap("ReconciliationMapper.reconciliationCount", page);
	}

	/**
	 * 到出
	* @author 葛欢欢
	* @version 2017.11.30 16:40 
	* @param page
	* @return
	* @throws Exception
	 */
	public List<Map<String, Object>> listReconciliationExcl(Page page) throws Exception {
		return (List<Map<String, Object>>) dao.findForList("ReconciliationMapper.getReconciliationlist", page);
	}
  
}
